﻿<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
	<FieldType>
		<Field Name="TypeName">SPUserPollLookup</Field>
		<Field Name="TypeDisplayName">SPUserPollLookup</Field>
		<Field Name="TypeShortDescription">Lookup values for to a specific poll</Field>
		<Field Name="UserCreatable">FALSE</Field>
		<Field Name="FieldTypeClass">SPUserPoll.Presentation.FieldTypes.SPUserPollLookup, SPUserPoll.Presentation.FieldTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b504d4b6c1e1a6e5</Field>
		<Field Name="FieldEditorUserControl">/_controltemplates/LookupFieldEditor.ascx</Field>
		<Field Name="SQLType">int</Field>
		<Field Name="InternalType">Lookup</Field>
		<Field Name="Sortable">TRUE</Field>
		<Field Name="Filterable">TRUE</Field>
		<RenderPattern Name="HeaderPattern">
			<Switch>
				<Expr>
					<Property Select='Filterable'/>
				</Expr>
				<Case Value="FALSE"> </Case>
				<Default>
					<Switch>
						<Expr>
							<GetVar Name='Filter'/>
						</Expr>
						<Case Value='1'>
							<HTML><![CDATA[<SELECT ID="diidFilter]]></HTML>
							<Property Select='Name'/>
							<HTML>                  <![CDATA[" TITLE=]]></HTML>
							<HTML>"$Resources:core,501;</HTML>
							<Property Select='DisplayName' HTMLEncode='TRUE'/>
							<HTML><![CDATA[" OnChange='FilterField("]]></HTML>
							<GetVar Name="View"/>
							<HTML><![CDATA[",]]></HTML>
							<ScriptQuote>
								<Property Select='Name' URLEncode="TRUE"/>
							</ScriptQuote>
							<HTML><![CDATA[,this.options[this.selectedIndex].value, this.selectedIndex);' dir="]]></HTML>
							<Property Select="Direction" HTMLEncode="TRUE"/>
							<HTML><![CDATA[">]]></HTML>
							<FieldFilterOptions BooleanTrue="$Resources:core,fld_yes;" BooleanFalse="$Resources:core,fld_no;" NullString="$Resources:core,fld_empty;" AllItems="$Resources:core,fld_all;"></FieldFilterOptions>
							<HTML><![CDATA[</SELECT><BR>]]></HTML>
						</Case>
					</Switch>
				</Default>
			</Switch>
			<Switch>
				<Expr>
					<Property Select='Sortable'/>
				</Expr>
				<Case Value="FALSE">
					<Property Select='DisplayName' HTMLEncode="TRUE"/>
				</Case>
				<Default>
					<Switch>
						<Expr>
							<GetVar Name='SortDisable'/>
						</Expr>
						<Case Value='TRUE'>
							<Property Select='DisplayName' HTMLEncode="TRUE"/>
						</Case>
						<Default>
							<HTML><![CDATA[<A ID="diidSort]]></HTML>
							<Property Select='Name'/>
							<HTML>        <![CDATA[" onfocus="OnFocusFilter(this)" TITLE=]]></HTML>
							<HTML>"$Resources:core,500;</HTML>
							<Property Select='DisplayName' HTMLEncode='TRUE'/>
							<HTML><![CDATA[" HREF="javascript:" OnClick="javascript:return OnClickFilter(this,event);" ]]></HTML>
							<HTML><![CDATA[ SORTINGFIELDS="]]></HTML>
							<FieldSortParams HTMLEncode="TRUE"/>
							<HTML><![CDATA[">]]></HTML>
							<Property Select='DisplayName' HTMLEncode="TRUE"/>
							<HTML><![CDATA[<img src="/_layouts/images/blank.gif" class="ms-hidden" border=0 width=1 height=1 alt="]]></HTML>
							<HTML>$Resources:OpenMenuKeyAccessible;</HTML>
							<HTML><![CDATA[">]]></HTML>
							<HTML><![CDATA[</A><IMG SRC="]]></HTML>
							<FieldSortImageURL/>
							<HTML><![CDATA[" ALT="]]></HTML>
							<Switch>
								<Expr>
									<GetVar Name='SortDir'/>
								</Expr>
								<Case Value='Asc'>
									<HTML>$Resources:core,150;</HTML>
								</Case>
								<Case Value='Desc'>
									<HTML>$Resources:core,151;</HTML>
								</Case>
								<Default>
									<HTML></HTML>
								</Default>
							</Switch>
							<HTML><![CDATA[" BORDER=0>]]></HTML>
						</Default>
					</Switch>
				</Default>
			</Switch>
			<HTML><![CDATA[<IMG SRC="]]></HTML>
			<FieldFilterImageURL/>
			<HTML><![CDATA[" BORDER=0 ALT="">]]></HTML>
		</RenderPattern>
		<RenderPattern Name="DisplayPattern">
			<FieldSwitch>
				<Expr>
					<Property Select="FieldRef"/>
				</Expr>
				<Case Value="">
					<FieldSwitch>
						<Expr>
							<Property Select="CountRelated"/>
						</Expr>
						<Case Value="TRUE">
							<LookupColumn HTMLEncode="TRUE"/>
						</Case>
						<Default>
							<Switch>
								<Expr>
									<Column/>
								</Expr>
								<Case Value="">
								</Case>
								<Default>
									<FieldSwitch>
										<Expr>
											<Property Select="LookupType"/>
										</Expr>
										<Case Value="Computed">
											<LookupColumn/>
										</Case>
										<Default>
											<HTML><![CDATA[<A HREF="]]></HTML>
											<URL Cmd="Lookup"/>
											<HTML><![CDATA[">]]></HTML>
											<LookupColumn HTMLEncode="TRUE"/>
											<HTML><![CDATA[</A>]]></HTML>
										</Default>
									</FieldSwitch>
								</Default>
							</Switch>
						</Default>
					</FieldSwitch>
				</Case>
				<Default>
					<LookupColumn HTMLEncode="TRUE"/>
				</Default>
			</FieldSwitch>
		</RenderPattern>
	</FieldType>
</FieldTypes>